#include "dataaevent.h"

#include <iostream>

namespace Lab1
{

    DataAEvent::DataAEvent( const std::string & str )
        :data( str, 0, 500)
    {
    }

    Event::eType DataAEvent::getType() const
    {
        return DATA_DEVICE_A;
    }

    Event::eSource DataAEvent::getSource() const
    {
        return DEVICE_A;
    }
    std::string DataAEvent::getData() const
    {
        return data;
    }
}
